package com.atguigu.gulimall.gulimallproduct.feign;

import com.atguigu.common.to.SkuRedutionTo;
import com.atguigu.common.to.SpuBoundTo;
import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author: Zjn ; Bring it on !!!
 * @Date: 2021/10/20 0020 12:58
 * Note:
 */
@FeignClient("gulimall-coupon")
public interface CouponFeignService {
    @PostMapping("/gulimallcoupon/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundTo spuBoundTo);

    @PostMapping("/gulimallcoupon/skufullreduction/saveInfo")
    R saveSkuReduction(@RequestBody SkuRedutionTo skuRedutionTo);
}
